/*
 * alignContainerV.cpp
 *
 *  Created on: 2011-09-08
 *      Author: pawel
 */
#include"alignContainerV.h"
#include<memory>
alignContainerV::alignContainerV()
:mutex(NULL)
{
	try{
		std::auto_ptr<pthread_mutex_t> smartMutex(new pthread_mutex_t);
		pthread_mutex_init(smartMutex.get(),NULL);
		mutex = smartMutex.release();
	}catch(std::exception& e){
		throw;
	}
}
alignContainerV::~alignContainerV(){
	if(mutex != NULL){
			pthread_mutex_destroy(mutex);
			delete mutex;
		}
}
pthread_mutex_t* alignContainerV::getMutex()const{ return mutex;}
